

function getTime(){
	let now=new Date()
	let day=now.getDate()
	let month=now.getMonth() + 1
	let year=now.getFullYear()

	let hh = now.getHours();            
	let mm = now.getMinutes();   
	let ss = now.getSeconds(); 

	let time = year + "-";

	if(month < 10)
		time += "0";
	time += month + "-";

	if(day < 10)
		time += "0";
	time += day + " ";

	if(hh < 10)
		time += "0";
	time += hh + ":";

	if (mm < 10) time += '0'; 
	time += mm + ":";

	if (ss < 10) time += '0'; 
	time += ss;    
	
	return time
}

module.exports = getTime;